<%- @page_title = _("Groups in which %s takes part", h(@user.name)) -%>
<h2><%= @page_title %></h2>
<%- unless @groups.empty? -%>
  <ul>
    <%- @groups.each do |g| -%>
      <li><%= _("%s for %s", link_to(h(g.name), group_path(g.teaching.project, g.teaching, g)), link_to(h(g.teaching.title), class_path(g.teaching.project, g.teaching))) %></li>
    <%- end -%>
  </ul>
<%- else -%>
  <p>This user hasn't joined any group, yet.</p>
<%- end -%>